from datetime import datetime,timedelta
import time
n = datetime.now()
y = datetime.now() - timedelta(days=1)
nt = time.mktime(n.timetuple())
yt = time.mktime(y.timetuple())
print(nt)
print(yt)